import request from '@/utils/request'

//获取列表
export function GetModelList(data) {
    return request({
        url: '/ytjyadmin/QueBank/GetModelList',
        method: 'post',
        data
    })
}

//新增或者编辑
export function PostModel(data) {
    return request({
        url: '/ytjyadmin/QueBank/PostModel',
        method: 'post',
        data
    })
}

//删除
export function DeleteModel(id) {
    return request({
        url: '/ytjyadmin/QueBank/DeleteModel?id=' + id,
        method: 'get'
    })
}

//获取题目类型列表
export function GetQuestionTypeList() {
    return request({
        url: '/ytjyadmin/QueBank/GetQuestionTypeList',
        method: 'get'
    })
}

/**
 * 获取题目详情
 * @param {题目id} id 
 */
export function GetModelDetail(id) {
    return request({
        url: '/ytjyadmin/QueBank/GetModelDetail?id=' + id,
        method: 'get'
    })
}